<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>v_hdmirx: xv_hdmirx_intr.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">v_hdmirx
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xv__hdmirx__intr_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xv_hdmirx_intr.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains interrupt related functions for Xilinx HDMI RX core. </p>
<p>Please see <a class="el" href="xv__hdmirx_8h.html" title="This is the main header file for Xilinx HDMI RX core. ">xv_hdmirx.h</a> for more details of the driver.</p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who    Date     Changes
<hr/>

1.00  gm, mg 11/03/15 Initial release.
1.01  yh     14/01/16 Set AxisEnable PIO to high when RX stream locked
1.03  MG     18/02/16 Added Link Check callback
1.04  MG     08/03/16 Added pixel clock calculation to HdmiRx_TmrIntrHandler
1.05  MH     08/03/16 Added support for read not complete DDC event
1.06  MG     27/05/16 Updated HdmiRx_VtdIntrHandler
1.07  MG     27/05/16 Updated HdmiRx_TmrIntrHandler
1.08  MG     30/05/16 Fixed issue with pixel clock adjustment for YUV422 colorspace
1.09  MH     26/07/16 Added DDC HDCP protocol event.
1.10  YH     18/08/16 squash unused variable compiler warning
1.11  MG     03/03/17 Updated function HdmiRx_TmrIntrHandler with
                          GetVideoPropertiesTries
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1af2b06988bf558daf78a4ffb7df8838"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xv__hdmirx__intr_8c.html#a1af2b06988bf558daf78a4ffb7df8838">XV_HdmiRx_IntrHandler</a> (void *InstancePtr)</td></tr>
<tr class="memdesc:a1af2b06988bf558daf78a4ffb7df8838"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function is the interrupt handler for the HDMI RX driver.  <a href="#a1af2b06988bf558daf78a4ffb7df8838">More...</a><br /></td></tr>
<tr class="separator:a1af2b06988bf558daf78a4ffb7df8838"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada318e0806f7d1fff347b2a4559ecc86"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xv__hdmirx__intr_8c.html#ada318e0806f7d1fff347b2a4559ecc86">XV_HdmiRx_SetCallback</a> (<a class="el" href="struct_x_v___hdmi_rx.html">XV_HdmiRx</a> *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef)</td></tr>
<tr class="memdesc:ada318e0806f7d1fff347b2a4559ecc86"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function installs an asynchronous callback function for the given HandlerType:  <a href="#ada318e0806f7d1fff347b2a4559ecc86">More...</a><br /></td></tr>
<tr class="separator:ada318e0806f7d1fff347b2a4559ecc86"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a1af2b06988bf558daf78a4ffb7df8838"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1af2b06988bf558daf78a4ffb7df8838">&#9670;&nbsp;</a></span>XV_HdmiRx_IntrHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XV_HdmiRx_IntrHandler </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is the interrupt handler for the HDMI RX driver. </p>
<p>This handler reads the pending interrupt from PIO, DDC, TIMDET, AUX, AUD and LNKSTA peripherals, determines the source of the interrupts, clears the interrupts and calls callbacks accordingly.</p>
<p>The application is responsible for connecting this function to the interrupt system. Application beyond this driver is also responsible for providing callbacks to handle interrupts and installing the callbacks using <a class="el" href="xv__hdmirx__intr_8c.html#ada318e0806f7d1fff347b2a4559ecc86" title="This function installs an asynchronous callback function for the given HandlerType: ...">XV_HdmiRx_SetCallback()</a> during initialization phase. An example delivered with this driver demonstrates how this could be done.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_v___hdmi_rx.html" title="The XHdmiRx driver instance data. ">XV_HdmiRx</a> instance that just interrupted.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_v___hdmi_rx___config.html#af7bfcbc5394a19ebdb89c10cb8622d39">XV_HdmiRx_Config::BaseAddress</a>, <a class="el" href="struct_x_v___hdmi_rx.html#ad2b9509ba5aae6678619d0e1845ef09e">XV_HdmiRx::Config</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a9676cb93770e2d9a9ad2045ea6494da6">XV_HdmiRx::IsReady</a>, <a class="el" href="xv__hdmirx__hw_8h.html#abd3c33cf8c70cbeb50a95f7d58556579">XV_HDMIRX_PIO_STA_IRQ_MASK</a>, <a class="el" href="xv__hdmirx__hw_8h.html#af1fe9c13a0a5c613a4ca868c82c6f969">XV_HDMIRX_PIO_STA_OFFSET</a>, and <a class="el" href="xv__hdmirx__hw_8h.html#ab1245a8a62b2b5611cc4cbb2aa4af75b">XV_HdmiRx_ReadReg</a>.</p>

</div>
</div>
<a id="ada318e0806f7d1fff347b2a4559ecc86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada318e0806f7d1fff347b2a4559ecc86">&#9670;&nbsp;</a></span>XV_HdmiRx_SetCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XV_HdmiRx_SetCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_v___hdmi_rx.html">XV_HdmiRx</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>HandlerType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function installs an asynchronous callback function for the given HandlerType: </p>
<pre>
HandlerType                 Callback Function Type
-------------------------   -----------------------------------------------
(XV_HDMIRX_HANDLER_VTD)         VtdCallback
(XV_HDMIRX_HANDLER_AUX)      AuxCallback
(XV_HDMIRX_HANDLER_AUD)      AudCallback
(XV_HDMIRX_HANDLER_LNKSTA)   LnkStaCallback
(XV_HDMIRX_HANDLER_PIO)      PioCallback
</pre><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the HDMI RX core instance. </td></tr>
    <tr><td class="paramname">HandlerType</td><td>specifies the type of handler. </td></tr>
    <tr><td class="paramname">CallbackFunc</td><td>is the address of the callback function. </td></tr>
    <tr><td class="paramname">CallbackRef</td><td>is a user data item that will be passed to the callback function when it is invoked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>XST_SUCCESS if callback function installed successfully.</li>
<li>XST_INVALID_PARAM when HandlerType is invalid.</li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Invoking this function for a handler that already has been installed replaces it with the new handler. </dd></dl>

<p class="reference">References <a class="el" href="struct_x_v___hdmi_rx.html#a2ad34b308129ea9d13355e0bac8f829d">XV_HdmiRx::AudCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#ad90a011cd393e8ef5c3eb37b9cbf7257">XV_HdmiRx::AudRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#aea31baac027a909bbe3189c2d0ed36a6">XV_HdmiRx::AuxCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a2aa07d5388ac1ee901940b441ed42918">XV_HdmiRx::AuxRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#ab19565a18843e9dc2e5162ba19112607">XV_HdmiRx::ConnectCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#af488febbfc741a436dac4b6ff44aadcf">XV_HdmiRx::ConnectRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a780aa401adc23e90de0864d8896a0b5d">XV_HdmiRx::DdcCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#af7519c3087b27b537256a07affd2d6c7">XV_HdmiRx::DdcRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a7a380f0815c05dd7a216b9b296d799d2">XV_HdmiRx::HdcpCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a16b8220d3d5726ce667fd2126cd77ce1">XV_HdmiRx::IsAudCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a31d2a9f9c0e677bf93d6170839da126f">XV_HdmiRx::IsAuxCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a98be1192a38df457a49b96b8fc4b15f2">XV_HdmiRx::IsConnectCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#ae59867a2fbf7898eb95b4c2b45d28410">XV_HdmiRx::IsDdcCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#aa0cb2c8145cd396993c88b73b706a50a">XV_HdmiRx::IsLnkStaCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#abec1436490b52a721664e6f532a0810f">XV_HdmiRx::IsStreamDownCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#ac02d9af178c3238017a0a144d62f03b3">XV_HdmiRx::IsStreamInitCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#ab0aaa52f119c073b465ad6c3bd80931b">XV_HdmiRx::IsStreamUpCallbackSet</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a9bc3519cb42839fc78d65e734578877b">XV_HdmiRx::LnkStaCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#aebe8793a268654c4a053dec49375036b">XV_HdmiRx::LnkStaRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a4487a94b3952681506cc3b2700ff68d2">XV_HdmiRx::StreamDownCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#af057991b7be7e1ac4ea309df7e38587c">XV_HdmiRx::StreamDownRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#afea252919d44c0018cbcd32c91bb8b44">XV_HdmiRx::StreamInitCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#adadf9a8e53bc33f559a16bd908c439ef">XV_HdmiRx::StreamInitRef</a>, <a class="el" href="struct_x_v___hdmi_rx.html#af7af2be88a6f34fe61a23127b05da53e">XV_HdmiRx::StreamUpCallback</a>, <a class="el" href="struct_x_v___hdmi_rx.html#a201b3f4452b50dd5d52136b2518ac749">XV_HdmiRx::StreamUpRef</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fcae3ee274c73f7e931608e72b97b6ccdfa">XV_HDMIRX_HANDLER_AUD</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fca4ac03ad55a4ccc5cdaf9371a0b4f4a0a">XV_HDMIRX_HANDLER_AUX</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fca6cd3e4e9606abbc9dc04d6ae78746edf">XV_HDMIRX_HANDLER_CONNECT</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fca37877da90b89767cf3a9fa2334e21209">XV_HDMIRX_HANDLER_DDC</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fcadc3fa6f8c9722ebb3233ef96105131b7">XV_HDMIRX_HANDLER_HDCP</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fcab7bcfc37377e4ee432052640a4494b43">XV_HDMIRX_HANDLER_LNKSTA</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fcad3ced78ccae6aa790e80a9110875f341">XV_HDMIRX_HANDLER_STREAM_DOWN</a>, <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fcab2ae77daad049a92e18cf39c38885488">XV_HDMIRX_HANDLER_STREAM_INIT</a>, and <a class="el" href="xv__hdmirx_8h.html#a93574b274899e5038d38e6524eab66fca0688b523e4e9a64c96b31def929a0209">XV_HDMIRX_HANDLER_STREAM_UP</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
